package com.starlink.model.dtomapper;

import com.starlink.model.domain.SearchRecordDO;
import com.starlink.model.request.SearchRecordRequest;
import com.starlink.model.vo.SearchRecordVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface SearchRecordDtoMapper {

    SearchRecordDtoMapper INSTANCE = Mappers.getMapper(SearchRecordDtoMapper.class);

    /**
    * DO to VO
    * @param searchRecordDO
    * @return
    */
    SearchRecordVO do2VO(SearchRecordDO searchRecordDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    SearchRecordDO request2DO(SearchRecordRequest request);
}
